package com.ttn.common.core.entity.auth;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.experimental.Accessors;

/**
    * 角色表
    */
@Data
@Accessors(chain = true)
@TableName(value = "sys_role")
public class SysRole implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 角色名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 角色权限字符串
     */
    @TableField(value = "resources")
    private String resources;

    @TableField(value = "menus")
    private String menus;

    /**
     * 显示顺序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 角色状态（0正常 1停用）
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 删除标识  (0未删除 1已删除)
     */
    @TableField(value = "deleted")
    private Integer deleted;

    /**
     * 描述
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_RESOURCES = "resources";

    public static final String COL_MENUS = "menus";

    public static final String COL_SORT = "sort";

    public static final String COL_STATUS = "status";

    public static final String COL_DELETED = "deleted";

    public static final String COL_REMARK = "remark";

    public static final String COL_CREATE_TIME = "create_time";
}